package com.nc.delivery_project.client.request;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.UserService;
import com.nc.delivery_project.shared.proxy.UserProxy;
import com.nc.delivery_project.shared.servicelocator.UserServiceLocator;

import java.util.List;

/**
 * Created by miroshnik on 01.12.14.
 */

@Service(value = UserService.class, locator = UserServiceLocator.class)
public interface UserRequest extends RequestContext {

    Request<Integer> create(UserProxy user);

    Request<List<UserProxy>> read();

    Request<UserProxy> read(int userId);

    Request<Void> update(UserProxy user);

    Request<Void> delete(int userId);
    
    
}
